#!/usr/bin/python3
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name:         users_state
# Description:  
# Author:       牛泽鹏
# Date:         2019/7/12
# -------------------------------------------------------------------------------


def user_state(request):
    if request.session.get('username'):
        return {'username': request.session['username']}
    return {'username': ''}











